<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="客户名称" prop="cCusName">
        <el-input
          v-model="queryParams.cCusName"
          placeholder="请输入客户名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="客户简称" prop="cCusAbbName">
        <el-input
          v-model="queryParams.cCusAbbName"
          placeholder="请输入客户简称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="客户编码" prop="cCCCode">
        <el-input
          v-model="queryParams.cCCCode"
          placeholder="请输入客户编码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <!-- <el-form-item label="" prop="cDCCode">
        <el-input
          v-model="queryParams.cDCCode"
          placeholder="请输入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="" prop="cTrade">
        <el-input
          v-model="queryParams.cTrade"
          placeholder="请输入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="" prop="cCusAddress">
        <el-input
          v-model="queryParams.cCusAddress"
          placeholder="请输入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="" prop="cCusPostCode">
        <el-input
          v-model="queryParams.cCusPostCode"
          placeholder="请输入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="" prop="cCusRegCode">
        <el-input
          v-model="queryParams.cCusRegCode"
          placeholder="请输入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusBank">
        <el-input
          v-model="queryParams.cCusBank"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusAccount">
        <el-input
          v-model="queryParams.cCusAccount"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dCusDevDate">
        <el-date-picker clearable
          v-model="queryParams.dCusDevDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusLPerson">
        <el-input
          v-model="queryParams.cCusLPerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusEmail">
        <el-input
          v-model="queryParams.cCusEmail"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusPerson">
        <el-input
          v-model="queryParams.cCusPerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusPhone">
        <el-input
          v-model="queryParams.cCusPhone"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusFax">
        <el-input
          v-model="queryParams.cCusFax"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusBP">
        <el-input
          v-model="queryParams.cCusBP"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusHand">
        <el-input
          v-model="queryParams.cCusHand"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusPPerson">
        <el-input
          v-model="queryParams.cCusPPerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iCusDisRate">
        <el-input
          v-model="queryParams.iCusDisRate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusCreGrade">
        <el-input
          v-model="queryParams.cCusCreGrade"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iCusCreLine">
        <el-input
          v-model="queryParams.iCusCreLine"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iCusCreDate">
        <el-input
          v-model="queryParams.iCusCreDate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusPayCond">
        <el-input
          v-model="queryParams.cCusPayCond"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusOAddress">
        <el-input
          v-model="queryParams.cCusOAddress"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusHeadCode">
        <el-input
          v-model="queryParams.cCusHeadCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusWhCode">
        <el-input
          v-model="queryParams.cCusWhCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDepart">
        <el-input
          v-model="queryParams.cCusDepart"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iARMoney">
        <el-input
          v-model="queryParams.iARMoney"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dLastDate">
        <el-date-picker clearable
          v-model="queryParams.dLastDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iLastMoney">
        <el-input
          v-model="queryParams.iLastMoney"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dLRDate">
        <el-date-picker clearable
          v-model="queryParams.dLRDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iLRMoney">
        <el-input
          v-model="queryParams.iLRMoney"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dEndDate">
        <el-date-picker clearable
          v-model="queryParams.dEndDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iFrequency">
        <el-input
          v-model="queryParams.iFrequency"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine1">
        <el-input
          v-model="queryParams.cCusDefine1"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine2">
        <el-input
          v-model="queryParams.cCusDefine2"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine3">
        <el-input
          v-model="queryParams.cCusDefine3"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iCostGrade">
        <el-input
          v-model="queryParams.iCostGrade"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCreatePerson">
        <el-input
          v-model="queryParams.cCreatePerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cModifyPerson">
        <el-input
          v-model="queryParams.cModifyPerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dModifyDate">
        <el-date-picker clearable
          v-model="queryParams.dModifyDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cRelVendor">
        <el-input
          v-model="queryParams.cRelVendor"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iId">
        <el-input
          v-model="queryParams.iId"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cPriceGroup">
        <el-input
          v-model="queryParams.cPriceGroup"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cOfferGrade">
        <el-input
          v-model="queryParams.cOfferGrade"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iOfferRate">
        <el-input
          v-model="queryParams.iOfferRate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine4">
        <el-input
          v-model="queryParams.cCusDefine4"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine5">
        <el-input
          v-model="queryParams.cCusDefine5"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine6">
        <el-input
          v-model="queryParams.cCusDefine6"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine7">
        <el-input
          v-model="queryParams.cCusDefine7"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine8">
        <el-input
          v-model="queryParams.cCusDefine8"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine9">
        <el-input
          v-model="queryParams.cCusDefine9"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine10">
        <el-input
          v-model="queryParams.cCusDefine10"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine11">
        <el-input
          v-model="queryParams.cCusDefine11"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine12">
        <el-input
          v-model="queryParams.cCusDefine12"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine13">
        <el-input
          v-model="queryParams.cCusDefine13"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine14">
        <el-input
          v-model="queryParams.cCusDefine14"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine15">
        <el-date-picker clearable
          v-model="queryParams.cCusDefine15"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusDefine16">
        <el-date-picker clearable
          v-model="queryParams.cCusDefine16"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cInvoiceCompany">
        <el-input
          v-model="queryParams.cInvoiceCompany"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bCredit">
        <el-input
          v-model="queryParams.bCredit"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bCreditDate">
        <el-input
          v-model="queryParams.bCreditDate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bCreditByHead">
        <el-input
          v-model="queryParams.bCreditByHead"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bLicenceDate">
        <el-input
          v-model="queryParams.bLicenceDate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dLicenceSDate">
        <el-date-picker clearable
          v-model="queryParams.dLicenceSDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dLicenceEDate">
        <el-date-picker clearable
          v-model="queryParams.dLicenceEDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iLicenceADays">
        <el-input
          v-model="queryParams.iLicenceADays"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bBusinessDate">
        <el-input
          v-model="queryParams.bBusinessDate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dBusinessSDate">
        <el-date-picker clearable
          v-model="queryParams.dBusinessSDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dBusinessEDate">
        <el-date-picker clearable
          v-model="queryParams.dBusinessEDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iBusinessADays">
        <el-input
          v-model="queryParams.iBusinessADays"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bProxy">
        <el-input
          v-model="queryParams.bProxy"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dProxySDate">
        <el-date-picker clearable
          v-model="queryParams.dProxySDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dProxyEDate">
        <el-date-picker clearable
          v-model="queryParams.dProxyEDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iProxyADays">
        <el-input
          v-model="queryParams.iProxyADays"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bLimitSale">
        <el-input
          v-model="queryParams.bLimitSale"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusCountryCode">
        <el-input
          v-model="queryParams.cCusCountryCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusEnName">
        <el-input
          v-model="queryParams.cCusEnName"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusEnAddr1">
        <el-input
          v-model="queryParams.cCusEnAddr1"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusEnAddr2">
        <el-input
          v-model="queryParams.cCusEnAddr2"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusEnAddr3">
        <el-input
          v-model="queryParams.cCusEnAddr3"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusEnAddr4">
        <el-input
          v-model="queryParams.cCusEnAddr4"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusPortCode">
        <el-input
          v-model="queryParams.cCusPortCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cPrimaryVen">
        <el-input
          v-model="queryParams.cPrimaryVen"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="fCommisionRate">
        <el-input
          v-model="queryParams.fCommisionRate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="fInsueRate">
        <el-input
          v-model="queryParams.fInsueRate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bHomeBranch">
        <el-input
          v-model="queryParams.bHomeBranch"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cBranchAddr">
        <el-input
          v-model="queryParams.cBranchAddr"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cBranchPhone">
        <el-input
          v-model="queryParams.cBranchPhone"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cBranchPerson">
        <el-input
          v-model="queryParams.cBranchPerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusTradeCCode">
        <el-input
          v-model="queryParams.cCusTradeCCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="CustomerKCode">
        <el-input
          v-model="queryParams.CustomerKCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bCusState">
        <el-input
          v-model="queryParams.bCusState"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bShop">
        <el-input
          v-model="queryParams.bShop"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusBankCode">
        <el-input
          v-model="queryParams.cCusBankCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="ccusexchName">
        <el-input
          v-model="queryParams.ccusexchName"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iCusGSPAuth">
        <el-input
          v-model="queryParams.iCusGSPAuth"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusGSPAuthNo">
        <el-input
          v-model="queryParams.cCusGSPAuthNo"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusBusinessNo">
        <el-input
          v-model="queryParams.cCusBusinessNo"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusLicenceNo">
        <el-input
          v-model="queryParams.cCusLicenceNo"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bCusDomestic">
        <el-input
          v-model="queryParams.bCusDomestic"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bCusOverseas">
        <el-input
          v-model="queryParams.bCusOverseas"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusCreditCompany">
        <el-input
          v-model="queryParams.cCusCreditCompany"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusSAProtocol">
        <el-input
          v-model="queryParams.cCusSAProtocol"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusExProtocol">
        <el-input
          v-model="queryParams.cCusExProtocol"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusOtherProtocol">
        <el-input
          v-model="queryParams.cCusOtherProtocol"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="fCusDiscountRate">
        <el-input
          v-model="queryParams.fCusDiscountRate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusSSCode">
        <el-input
          v-model="queryParams.cCusSSCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusCMProtocol">
        <el-input
          v-model="queryParams.cCusCMProtocol"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dCusCreateDatetime">
        <el-date-picker clearable
          v-model="queryParams.dCusCreateDatetime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusAppDocNo">
        <el-input
          v-model="queryParams.cCusAppDocNo"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusMnemCode">
        <el-input
          v-model="queryParams.cCusMnemCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="fAdvancePaymentRatio">
        <el-input
          v-model="queryParams.fAdvancePaymentRatio"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bServiceAttribute">
        <el-input
          v-model="queryParams.bServiceAttribute"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bRequestSign">
        <el-input
          v-model="queryParams.bRequestSign"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bOnGPinStore">
        <el-input
          v-model="queryParams.bOnGPinStore"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusMngTypeCode">
        <el-input
          v-model="queryParams.cCusMngTypeCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusImAgentProtocol">
        <el-input
          v-model="queryParams.cCusImAgentProtocol"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iSourceId">
        <el-input
          v-model="queryParams.iSourceId"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="fExpense">
        <el-input
          v-model="queryParams.fExpense"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="fApprovedExpense">
        <el-input
          v-model="queryParams.fApprovedExpense"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dTouchedTime">
        <el-date-picker clearable
          v-model="queryParams.dTouchedTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentlyInvoiceTime">
        <el-date-picker clearable
          v-model="queryParams.dRecentlyInvoiceTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentlyQuoteTime">
        <el-date-picker clearable
          v-model="queryParams.dRecentlyQuoteTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentlyActivityTime">
        <el-date-picker clearable
          v-model="queryParams.dRecentlyActivityTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentlyChanceTime">
        <el-date-picker clearable
          v-model="queryParams.dRecentlyChanceTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentlyContractTime">
        <el-date-picker clearable
          v-model="queryParams.dRecentlyContractTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cLtcCustomerCode">
        <el-input
          v-model="queryParams.cLtcCustomerCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="bTransFlag">
        <el-input
          v-model="queryParams.bTransFlag"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cLtcPerson">
        <el-input
          v-model="queryParams.cLtcPerson"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dLtcDate">
        <el-date-picker clearable
          v-model="queryParams.dLtcDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cLocationSite">
        <el-input
          v-model="queryParams.cLocationSite"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="iCusTaxRate">
        <el-input
          v-model="queryParams.iCusTaxRate"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="alloctDeptTime">
        <el-date-picker clearable
          v-model="queryParams.alloctDeptTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="allotUserTime">
        <el-date-picker clearable
          v-model="queryParams.allotUserTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="recyleDeptTime">
        <el-date-picker clearable
          v-model="queryParams.recyleDeptTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="recylePubTime">
        <el-date-picker clearable
          v-model="queryParams.recylePubTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cLicenceNo">
        <el-input
          v-model="queryParams.cLicenceNo"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cLicenceRange">
        <el-input
          v-model="queryParams.cLicenceRange"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusBusinessRange">
        <el-input
          v-model="queryParams.cCusBusinessRange"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCusGSPAuthRange">
        <el-input
          v-model="queryParams.cCusGSPAuthRange"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dCusGSPEDate">
        <el-date-picker clearable
          v-model="queryParams.dCusGSPEDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dCusGSPSDate">
        <el-date-picker clearable
          v-model="queryParams.dCusGSPSDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iCusGSPADays">
        <el-input
          v-model="queryParams.iCusGSPADays"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentContractDate">
        <el-date-picker clearable
          v-model="queryParams.dRecentContractDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentDeliveryDate">
        <el-date-picker clearable
          v-model="queryParams.dRecentDeliveryDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="dRecentOutboundDate">
        <el-date-picker clearable
          v-model="queryParams.dRecentOutboundDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="cProvince">
        <el-input
          v-model="queryParams.cProvince"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCity">
        <el-input
          v-model="queryParams.cCity"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCounty">
        <el-input
          v-model="queryParams.cCounty"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cAddCode">
        <el-input
          v-model="queryParams.cAddCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cCreditAddCode">
        <el-input
          v-model="queryParams.cCreditAddCode"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cRegCash">
        <el-input
          v-model="queryParams.cRegCash"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="dDepBeginDate">
        <el-date-picker clearable
          v-model="queryParams.dDepBeginDate"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择${comment}">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="${comment}" prop="iEmployeeNum">
        <el-input
          v-model="queryParams.iEmployeeNum"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="${comment}" prop="cURL">
        <el-input
          v-model="queryParams.cURL"
          placeholder="请输入${comment}"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item> -->
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['system:customer:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['system:customer:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['system:customer:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['system:customer:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="customerList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="客户名称" align="center" prop="cCusName" />
      <el-table-column label="客户简称" align="center" prop="cCusAbbName" />
      <el-table-column label="客户分类编码" align="center" prop="cCCCode" />
      <el-table-column label="地区编码" align="center" prop="cDCCode" />
      <el-table-column label="所属行业" align="center" prop="cTrade" />
      <el-table-column label="地址" align="center" prop="cCusAddress" />
      <el-table-column label="邮政编码" align="center" prop="cCusPostCode" />
      <el-table-column label="" align="center" prop="cCusRegCode" />
      <!-- <el-table-column label="开户银行" align="center" prop="cCusBank" />
      <el-table-column label="银行账号" align="center" prop="cCusAccount" />
      <el-table-column label="发展日期" align="center" prop="dCusDevDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dCusDevDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="法人" align="center" prop="cCusLPerson" />
      <el-table-column label="${comment}" align="center" prop="cCusEmail" />
      <el-table-column label="${comment}" align="center" prop="cCusPerson" />
      <el-table-column label="${comment}" align="center" prop="cCusPhone" />
      <el-table-column label="${comment}" align="center" prop="cCusFax" />
      <el-table-column label="${comment}" align="center" prop="cCusBP" />
      <el-table-column label="${comment}" align="center" prop="cCusHand" />
      <el-table-column label="${comment}" align="center" prop="cCusPPerson" />
      <el-table-column label="${comment}" align="center" prop="iCusDisRate" />
      <el-table-column label="${comment}" align="center" prop="cCusCreGrade" />
      <el-table-column label="${comment}" align="center" prop="iCusCreLine" />
      <el-table-column label="${comment}" align="center" prop="iCusCreDate" />
      <el-table-column label="${comment}" align="center" prop="cCusPayCond" />
      <el-table-column label="${comment}" align="center" prop="cCusOAddress" />
      <el-table-column label="${comment}" align="center" prop="cCusOType" />
      <el-table-column label="${comment}" align="center" prop="cCusHeadCode" />
      <el-table-column label="${comment}" align="center" prop="cCusWhCode" />
      <el-table-column label="${comment}" align="center" prop="cCusDepart" />
      <el-table-column label="${comment}" align="center" prop="iARMoney" />
      <el-table-column label="${comment}" align="center" prop="dLastDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dLastDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iLastMoney" />
      <el-table-column label="${comment}" align="center" prop="dLRDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dLRDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iLRMoney" />
      <el-table-column label="${comment}" align="center" prop="dEndDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dEndDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iFrequency" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine1" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine2" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine3" />
      <el-table-column label="${comment}" align="center" prop="iCostGrade" />
      <el-table-column label="${comment}" align="center" prop="cCreatePerson" />
      <el-table-column label="${comment}" align="center" prop="cModifyPerson" />
      <el-table-column label="${comment}" align="center" prop="dModifyDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dModifyDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="对应供应商" align="center" prop="cRelVendor" />
      <el-table-column label="${comment}" align="center" prop="iId" />
      <el-table-column label="${comment}" align="center" prop="cPriceGroup" />
      <el-table-column label="${comment}" align="center" prop="cOfferGrade" />
      <el-table-column label="${comment}" align="center" prop="iOfferRate" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine4" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine5" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine6" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine7" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine8" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine9" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine10" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine11" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine12" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine13" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine14" />
      <el-table-column label="${comment}" align="center" prop="cCusDefine15" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.cCusDefine15, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="cCusDefine16" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.cCusDefine16, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="pubufts" />
      <el-table-column label="${comment}" align="center" prop="cInvoiceCompany" />
      <el-table-column label="${comment}" align="center" prop="bCredit" />
      <el-table-column label="${comment}" align="center" prop="bCreditDate" />
      <el-table-column label="${comment}" align="center" prop="bCreditByHead" />
      <el-table-column label="${comment}" align="center" prop="bLicenceDate" />
      <el-table-column label="${comment}" align="center" prop="dLicenceSDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dLicenceSDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dLicenceEDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dLicenceEDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iLicenceADays" />
      <el-table-column label="${comment}" align="center" prop="bBusinessDate" />
      <el-table-column label="${comment}" align="center" prop="dBusinessSDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dBusinessSDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dBusinessEDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dBusinessEDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iBusinessADays" />
      <el-table-column label="${comment}" align="center" prop="bProxy" />
      <el-table-column label="${comment}" align="center" prop="dProxySDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dProxySDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dProxyEDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dProxyEDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iProxyADays" />
      <el-table-column label="${comment}" align="center" prop="cMemo" />
      <el-table-column label="${comment}" align="center" prop="bLimitSale" />
      <el-table-column label="${comment}" align="center" prop="cCusContactCode" />
      <el-table-column label="${comment}" align="center" prop="cCusCountryCode" />
      <el-table-column label="${comment}" align="center" prop="cCusEnName" />
      <el-table-column label="${comment}" align="center" prop="cCusEnAddr1" />
      <el-table-column label="${comment}" align="center" prop="cCusEnAddr2" />
      <el-table-column label="${comment}" align="center" prop="cCusEnAddr3" />
      <el-table-column label="${comment}" align="center" prop="cCusEnAddr4" />
      <el-table-column label="${comment}" align="center" prop="cCusPortCode" />
      <el-table-column label="${comment}" align="center" prop="cPrimaryVen" />
      <el-table-column label="${comment}" align="center" prop="fCommisionRate" />
      <el-table-column label="${comment}" align="center" prop="fInsueRate" />
      <el-table-column label="${comment}" align="center" prop="bHomeBranch" />
      <el-table-column label="${comment}" align="center" prop="cBranchAddr" />
      <el-table-column label="${comment}" align="center" prop="cBranchPhone" />
      <el-table-column label="${comment}" align="center" prop="cBranchPerson" />
      <el-table-column label="${comment}" align="center" prop="cCusTradeCCode" />
      <el-table-column label="客户级别" align="center" prop="CustomerKCode" />
      <el-table-column label="${comment}" align="center" prop="bCusState" />
      <el-table-column label="${comment}" align="center" prop="bShop" />
      <el-table-column label="${comment}" align="center" prop="cCusBankCode" />
      <el-table-column label="币种" align="center" prop="ccusexchName" />
      <el-table-column label="${comment}" align="center" prop="iCusGSPType" />
      <el-table-column label="${comment}" align="center" prop="iCusGSPAuth" />
      <el-table-column label="${comment}" align="center" prop="cCusGSPAuthNo" />
      <el-table-column label="${comment}" align="center" prop="cCusBusinessNo" />
      <el-table-column label="${comment}" align="center" prop="cCusLicenceNo" />
      <el-table-column label="${comment}" align="center" prop="bCusDomestic" />
      <el-table-column label="${comment}" align="center" prop="bCusOverseas" />
      <el-table-column label="${comment}" align="center" prop="cCusCreditCompany" />
      <el-table-column label="${comment}" align="center" prop="cCusSAProtocol" />
      <el-table-column label="${comment}" align="center" prop="cCusExProtocol" />
      <el-table-column label="${comment}" align="center" prop="cCusOtherProtocol" />
      <el-table-column label="${comment}" align="center" prop="fCusDiscountRate" />
      <el-table-column label="${comment}" align="center" prop="cCusSSCode" />
      <el-table-column label="${comment}" align="center" prop="cCusCMProtocol" />
      <el-table-column label="${comment}" align="center" prop="dCusCreateDatetime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dCusCreateDatetime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="cCusAppDocNo" />
      <el-table-column label="${comment}" align="center" prop="cCusMnemCode" />
      <el-table-column label="${comment}" align="center" prop="fAdvancePaymentRatio" />
      <el-table-column label="${comment}" align="center" prop="bServiceAttribute" />
      <el-table-column label="${comment}" align="center" prop="bRequestSign" />
      <el-table-column label="${comment}" align="center" prop="bOnGPinStore" />
      <el-table-column label="${comment}" align="center" prop="cCusMngTypeCode" />
      <el-table-column label="${comment}" align="center" prop="accountType" />
      <el-table-column label="${comment}" align="center" prop="cCusImAgentProtocol" />
      <el-table-column label="${comment}" align="center" prop="iSourceType" />
      <el-table-column label="${comment}" align="center" prop="iSourceId" />
      <el-table-column label="${comment}" align="center" prop="fExpense" />
      <el-table-column label="${comment}" align="center" prop="fApprovedExpense" />
      <el-table-column label="${comment}" align="center" prop="dTouchedTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dTouchedTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentlyInvoiceTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentlyInvoiceTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentlyQuoteTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentlyQuoteTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentlyActivityTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentlyActivityTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentlyChanceTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentlyChanceTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentlyContractTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentlyContractTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="cLtcCustomerCode" />
      <el-table-column label="${comment}" align="center" prop="bTransFlag" />
      <el-table-column label="${comment}" align="center" prop="cLtcPerson" />
      <el-table-column label="${comment}" align="center" prop="dLtcDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dLtcDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="cLocationSite" />
      <el-table-column label="${comment}" align="center" prop="iCusTaxRate" />
      <el-table-column label="${comment}" align="center" prop="alloctDeptTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.alloctDeptTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="allotUserTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.allotUserTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="recyleDeptTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.recyleDeptTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="recylePubTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.recylePubTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="cLicenceNo" />
      <el-table-column label="${comment}" align="center" prop="cLicenceRange" />
      <el-table-column label="${comment}" align="center" prop="cCusBusinessRange" />
      <el-table-column label="${comment}" align="center" prop="cCusGSPAuthRange" />
      <el-table-column label="${comment}" align="center" prop="dCusGSPEDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dCusGSPEDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dCusGSPSDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dCusGSPSDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iCusGSPADays" />
      <el-table-column label="${comment}" align="center" prop="bIsCusAttachFile" />
      <el-table-column label="${comment}" align="center" prop="dRecentContractDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentContractDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentDeliveryDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentDeliveryDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="dRecentOutboundDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dRecentOutboundDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="cProvince" />
      <el-table-column label="${comment}" align="center" prop="cCity" />
      <el-table-column label="${comment}" align="center" prop="cCounty" />
      <el-table-column label="${comment}" align="center" prop="cCusAddressGUID" />
      <el-table-column label="${comment}" align="center" prop="cAddCode" />
      <el-table-column label="${comment}" align="center" prop="cCreditAddCode" />
      <el-table-column label="${comment}" align="center" prop="cRegCash" />
      <el-table-column label="${comment}" align="center" prop="dDepBeginDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.dDepBeginDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="${comment}" align="center" prop="iEmployeeNum" />
      <el-table-column label="${comment}" align="center" prop="cURL" />
      <el-table-column label="${comment}" align="center" prop="PictureGUID" /> -->
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['system:customer:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:customer:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    
    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改customer对话框 -->
    <el-dialog :title="title" :visible.sync="open" :fullscreen="true" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
        <el-divider direction="vertical"></el-divider>
        <span class="color_blue">基本信息</span>
        <el-divider></el-divider>

        <div>
          <el-row>
            <el-col :span="8">
              <el-form-item label="客户编码" prop="cCusCode">
                <el-input v-model="form.cCusCode" placeholder="请输入客户编码" />
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="客户名称" prop="cCusName">
                <el-input v-model="form.cCusName" placeholder="请输入客户名称" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="客户简称" prop="cCusAbbName">
                <el-input v-model="form.cCusAbbName" placeholder="请输入客户简称" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="助记码" prop="cCusMnemCode">
                <el-input v-model="form.cCusMnemCode" placeholder="请输入助记码" />
              </el-form-item>
            </el-col>
            
            <el-col :span="8">
              <el-form-item label="国内/外" prop="country">
                <!-- <el-input v-model="form.cDCCode" @change="changeCountry(1)"></el-input> -->
                <el-select style="width: 100%" v-model="form.country" clearable placeholder="国内/外" @focus="changeCountry(1)">
                  <el-option v-for="item in countryList" :key="item.cDCCode" :label="item.cDCName" :value="item.cDCCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="行政区" prop="province">
                <el-select style="width: 100%" v-model="form.province" clearable placeholder="请选择行政区"
                @focus="changeCountry(2)">
                  <el-option v-for="item in provinceList" :key="item.cDCCode" :label="item.cDCName" :value="item.cDCCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="省/直辖市" prop="cDCCode">
                <el-select style="width: 100%" v-model="form.cDCCode" clearable placeholder="请选择省/直辖市"
                @focus="changeCountry(3)">
                  <el-option v-for="item in cityList" :key="item.cDCCode" :label="item.cDCName" :value="item.cDCCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>


            <el-col :span="8">
              <el-form-item label="所属分类(国内/国外)" prop="cCCCCode">
                <el-select style="width: 100%" v-model="form.cCCCCode" clearable placeholder="请选择客户分类(国内/国外)"
                @focus="changeCCC(1)">
                  <el-option v-for="item in CCCCList" :key="item.cCCCode" :label="item.cCCName" :value="item.cCCCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="所属分类" prop="cCCCode">
                <el-select style="width: 100%" v-model="form.cCCCode" clearable placeholder="请选择客户分类"
                @focus="changeCCC(2)">
                  <el-option v-for="item in CCCList" :key="item.cCCCode" :label="item.cCCName" :value="item.cCCCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="币种" prop="ccusexchName">
                <el-select style="width: 100%" v-model="form.ccusexchName" clearable placeholder="请选择币种分类"
                @focus="changeCEH()">
                  <el-option v-for="item in CusExch" :key="item.cexchName" :label="item.cexchName" :value="item.cexchName"></el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="法人" prop="cCusLPerson">
                <el-input v-model="form.cCusLPerson" placeholder="请输入法人" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="税号" prop="cCusRegCode">
                <el-input v-model="form.cCusRegCode" placeholder="请输入税号" />
              </el-form-item>
            </el-col>

          </el-row>
        </div>

        <el-divider direction="vertical"></el-divider>
          <span class="color_blue">联系信息</span>
        <el-divider></el-divider>

        <div>
          <el-row>
            <el-col :span="8">
              <el-form-item label="分管部门" prop="cCusDepart">
                <el-select style="width: 100%" v-model="form.cCusDepart" clearable placeholder="请选择分管部门"
                @focus="changeBM()">
                  <el-option v-for="item in departmentlist" :key="item.cDepCode" :label="item.cDepName" :value="item.cDepCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>

            <el-col :span="8">
            <el-form-item label="专管业务员" prop="cCusPPerson">
              <el-select 
                style="width: 100%" 
                v-model="form.cCusPPerson" 
                clearable 
                filterable 
                @focus="changePersonList()"
                placeholder="请输入专管业务员">
                <el-option 
                  v-for="item in PersonList" 
                  :key="item.cPersonCode" 
                  :label="item.cPersonName" 
                  :value="item.cPersonCode">
                </el-option>
              </el-select>
            </el-form-item>
            </el-col>



            <el-col :span="8">
              <el-form-item label="电话" prop="cCusPhone">
                <el-input v-model="form.cCusPhone " placeholder="请输入电话" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="传真" prop="cCusFax">
                <el-input v-model="form.cCusFax" placeholder="请输入传真" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
            <el-form-item label="联系人" prop="cCusPerson">
              <el-select 
                style="width: 100%" 
                v-model="form.cCusPerson" 
                clearable 
                filterable 
                @focus="changePersonList()"
                placeholder="请选择联系人">
                <el-option 
                  v-for="item in PersonList" 
                  :key="item.cPersonCode" 
                  :label="item.cPersonName" 
                  :value="item.cPersonCode">
                </el-option>
              </el-select>
            </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="手机" prop="cCusHand">
                <el-input v-model="form.cCusHand" placeholder="请输入手机号" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="邮政编码" prop="cCusPostCode">
                <el-input v-model="form.cCusPostCode" placeholder="请输入邮政编码" />
              </el-form-item>
            </el-col>

            
            <el-col :span="8">
              <el-form-item label="Email地址" prop="cCusEmail">
                <el-input v-model="form.cCusEmail" placeholder="请输入Email地址" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="地址" prop="cCusAddress">
                <el-input v-model="form.cCusAddress" placeholder="请输入Email地址" />
              </el-form-item>
            </el-col>

            <el-col :span="8">
              <el-form-item label="结算方式" prop="cCusSSCode">
                <el-select style="width: 100%" v-model="form.cCusSSCode" clearable placeholder="请选择结算方式"
                @focus="changejsfs()">
                  <el-option v-for="item in JSFSList" :key="item.cSSCode" :label="item.cSSName" :value="item.cSSCode"></el-option>
                </el-select>
              </el-form-item>
            </el-col>




          </el-row>
        </div>




        <el-divider direction="vertical"></el-divider>
          <span class="color_blue">信用</span>
        <el-divider></el-divider>

        <el-divider direction="vertical"></el-divider>
          <span class="color_blue">其它</span>
        <el-divider></el-divider>
       
        <!-- <el-form-item label="" prop="cCusName">
          <el-input v-model="form.cCusName" placeholder="请输入" />
        </el-form-item> -->
        <!-- <el-form-item label="" prop="cCusAbbName">
          <el-input v-model="form.cCusAbbName" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="" prop="cCCCode">
          <el-input v-model="form.cCCCode" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="" prop="cDCCode">
          <el-input v-model="form.cDCCode" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="" prop="cTrade">
          <el-input v-model="form.cTrade" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="" prop="cCusAddress">
          <el-input v-model="form.cCusAddress" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="" prop="cCusPostCode">
          <el-input v-model="form.cCusPostCode" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="" prop="cCusRegCode">
          <el-input v-model="form.cCusRegCode" placeholder="请输入" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusBank">
          <el-input v-model="form.cCusBank" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusAccount">
          <el-input v-model="form.cCusAccount" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dCusDevDate">
          <el-date-picker clearable
            v-model="form.dCusDevDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusLPerson">
          <el-input v-model="form.cCusLPerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusEmail">
          <el-input v-model="form.cCusEmail" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusPerson">
          <el-input v-model="form.cCusPerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusPhone">
          <el-input v-model="form.cCusPhone" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusFax">
          <el-input v-model="form.cCusFax" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusBP">
          <el-input v-model="form.cCusBP" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusHand">
          <el-input v-model="form.cCusHand" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusPPerson">
          <el-input v-model="form.cCusPPerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iCusDisRate">
          <el-input v-model="form.iCusDisRate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusCreGrade">
          <el-input v-model="form.cCusCreGrade" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iCusCreLine">
          <el-input v-model="form.iCusCreLine" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iCusCreDate">
          <el-input v-model="form.iCusCreDate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusPayCond">
          <el-input v-model="form.cCusPayCond" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusOAddress">
          <el-input v-model="form.cCusOAddress" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusHeadCode">
          <el-input v-model="form.cCusHeadCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusWhCode">
          <el-input v-model="form.cCusWhCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDepart">
          <el-input v-model="form.cCusDepart" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iARMoney">
          <el-input v-model="form.iARMoney" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dLastDate">
          <el-date-picker clearable
            v-model="form.dLastDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iLastMoney">
          <el-input v-model="form.iLastMoney" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dLRDate">
          <el-date-picker clearable
            v-model="form.dLRDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iLRMoney">
          <el-input v-model="form.iLRMoney" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dEndDate">
          <el-date-picker clearable
            v-model="form.dEndDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iFrequency">
          <el-input v-model="form.iFrequency" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine1">
          <el-input v-model="form.cCusDefine1" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine2">
          <el-input v-model="form.cCusDefine2" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine3">
          <el-input v-model="form.cCusDefine3" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iCostGrade">
          <el-input v-model="form.iCostGrade" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCreatePerson">
          <el-input v-model="form.cCreatePerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cModifyPerson">
          <el-input v-model="form.cModifyPerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dModifyDate">
          <el-date-picker clearable
            v-model="form.dModifyDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cRelVendor">
          <el-input v-model="form.cRelVendor" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iId">
          <el-input v-model="form.iId" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cPriceGroup">
          <el-input v-model="form.cPriceGroup" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cOfferGrade">
          <el-input v-model="form.cOfferGrade" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iOfferRate">
          <el-input v-model="form.iOfferRate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine4">
          <el-input v-model="form.cCusDefine4" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine5">
          <el-input v-model="form.cCusDefine5" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine6">
          <el-input v-model="form.cCusDefine6" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine7">
          <el-input v-model="form.cCusDefine7" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine8">
          <el-input v-model="form.cCusDefine8" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine9">
          <el-input v-model="form.cCusDefine9" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine10">
          <el-input v-model="form.cCusDefine10" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine11">
          <el-input v-model="form.cCusDefine11" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine12">
          <el-input v-model="form.cCusDefine12" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine13">
          <el-input v-model="form.cCusDefine13" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine14">
          <el-input v-model="form.cCusDefine14" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine15">
          <el-date-picker clearable
            v-model="form.cCusDefine15"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusDefine16">
          <el-date-picker clearable
            v-model="form.cCusDefine16"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cInvoiceCompany">
          <el-input v-model="form.cInvoiceCompany" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bCredit">
          <el-input v-model="form.bCredit" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bCreditDate">
          <el-input v-model="form.bCreditDate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bCreditByHead">
          <el-input v-model="form.bCreditByHead" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bLicenceDate">
          <el-input v-model="form.bLicenceDate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dLicenceSDate">
          <el-date-picker clearable
            v-model="form.dLicenceSDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dLicenceEDate">
          <el-date-picker clearable
            v-model="form.dLicenceEDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iLicenceADays">
          <el-input v-model="form.iLicenceADays" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bBusinessDate">
          <el-input v-model="form.bBusinessDate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dBusinessSDate">
          <el-date-picker clearable
            v-model="form.dBusinessSDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dBusinessEDate">
          <el-date-picker clearable
            v-model="form.dBusinessEDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iBusinessADays">
          <el-input v-model="form.iBusinessADays" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bProxy">
          <el-input v-model="form.bProxy" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dProxySDate">
          <el-date-picker clearable
            v-model="form.dProxySDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dProxyEDate">
          <el-date-picker clearable
            v-model="form.dProxyEDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iProxyADays">
          <el-input v-model="form.iProxyADays" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cMemo">
          <el-input v-model="form.cMemo" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bLimitSale">
          <el-input v-model="form.bLimitSale" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusContactCode">
          <el-input v-model="form.cCusContactCode" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusCountryCode">
          <el-input v-model="form.cCusCountryCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusEnName">
          <el-input v-model="form.cCusEnName" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusEnAddr1">
          <el-input v-model="form.cCusEnAddr1" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusEnAddr2">
          <el-input v-model="form.cCusEnAddr2" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusEnAddr3">
          <el-input v-model="form.cCusEnAddr3" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusEnAddr4">
          <el-input v-model="form.cCusEnAddr4" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusPortCode">
          <el-input v-model="form.cCusPortCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cPrimaryVen">
          <el-input v-model="form.cPrimaryVen" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="fCommisionRate">
          <el-input v-model="form.fCommisionRate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="fInsueRate">
          <el-input v-model="form.fInsueRate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bHomeBranch">
          <el-input v-model="form.bHomeBranch" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cBranchAddr">
          <el-input v-model="form.cBranchAddr" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cBranchPhone">
          <el-input v-model="form.cBranchPhone" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cBranchPerson">
          <el-input v-model="form.cBranchPerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusTradeCCode">
          <el-input v-model="form.cCusTradeCCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="CustomerKCode">
          <el-input v-model="form.CustomerKCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bCusState">
          <el-input v-model="form.bCusState" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bShop">
          <el-input v-model="form.bShop" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusBankCode">
          <el-input v-model="form.cCusBankCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="ccusexchName">
          <el-input v-model="form.ccusexchName" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iCusGSPAuth">
          <el-input v-model="form.iCusGSPAuth" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusGSPAuthNo">
          <el-input v-model="form.cCusGSPAuthNo" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusBusinessNo">
          <el-input v-model="form.cCusBusinessNo" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusLicenceNo">
          <el-input v-model="form.cCusLicenceNo" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bCusDomestic">
          <el-input v-model="form.bCusDomestic" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bCusOverseas">
          <el-input v-model="form.bCusOverseas" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusCreditCompany">
          <el-input v-model="form.cCusCreditCompany" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusSAProtocol">
          <el-input v-model="form.cCusSAProtocol" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusExProtocol">
          <el-input v-model="form.cCusExProtocol" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusOtherProtocol">
          <el-input v-model="form.cCusOtherProtocol" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="fCusDiscountRate">
          <el-input v-model="form.fCusDiscountRate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusSSCode">
          <el-input v-model="form.cCusSSCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusCMProtocol">
          <el-input v-model="form.cCusCMProtocol" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dCusCreateDatetime">
          <el-date-picker clearable
            v-model="form.dCusCreateDatetime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusAppDocNo">
          <el-input v-model="form.cCusAppDocNo" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusMnemCode">
          <el-input v-model="form.cCusMnemCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="fAdvancePaymentRatio">
          <el-input v-model="form.fAdvancePaymentRatio" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bServiceAttribute">
          <el-input v-model="form.bServiceAttribute" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bRequestSign">
          <el-input v-model="form.bRequestSign" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bOnGPinStore">
          <el-input v-model="form.bOnGPinStore" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusMngTypeCode">
          <el-input v-model="form.cCusMngTypeCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusImAgentProtocol">
          <el-input v-model="form.cCusImAgentProtocol" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iSourceId">
          <el-input v-model="form.iSourceId" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="fExpense">
          <el-input v-model="form.fExpense" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="fApprovedExpense">
          <el-input v-model="form.fApprovedExpense" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dTouchedTime">
          <el-date-picker clearable
            v-model="form.dTouchedTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentlyInvoiceTime">
          <el-date-picker clearable
            v-model="form.dRecentlyInvoiceTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentlyQuoteTime">
          <el-date-picker clearable
            v-model="form.dRecentlyQuoteTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentlyActivityTime">
          <el-date-picker clearable
            v-model="form.dRecentlyActivityTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentlyChanceTime">
          <el-date-picker clearable
            v-model="form.dRecentlyChanceTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentlyContractTime">
          <el-date-picker clearable
            v-model="form.dRecentlyContractTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cLtcCustomerCode">
          <el-input v-model="form.cLtcCustomerCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bTransFlag">
          <el-input v-model="form.bTransFlag" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cLtcPerson">
          <el-input v-model="form.cLtcPerson" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dLtcDate">
          <el-date-picker clearable
            v-model="form.dLtcDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cLocationSite">
          <el-input v-model="form.cLocationSite" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="iCusTaxRate">
          <el-input v-model="form.iCusTaxRate" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="alloctDeptTime">
          <el-date-picker clearable
            v-model="form.alloctDeptTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="allotUserTime">
          <el-date-picker clearable
            v-model="form.allotUserTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="recyleDeptTime">
          <el-date-picker clearable
            v-model="form.recyleDeptTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="recylePubTime">
          <el-date-picker clearable
            v-model="form.recylePubTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cLicenceNo">
          <el-input v-model="form.cLicenceNo" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cLicenceRange">
          <el-input v-model="form.cLicenceRange" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusBusinessRange">
          <el-input v-model="form.cCusBusinessRange" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusGSPAuthRange">
          <el-input v-model="form.cCusGSPAuthRange" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dCusGSPEDate">
          <el-date-picker clearable
            v-model="form.dCusGSPEDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dCusGSPSDate">
          <el-date-picker clearable
            v-model="form.dCusGSPSDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iCusGSPADays">
          <el-input v-model="form.iCusGSPADays" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="bIsCusAttachFile">
          <file-upload v-model="form.bIsCusAttachFile"/>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentContractDate">
          <el-date-picker clearable
            v-model="form.dRecentContractDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentDeliveryDate">
          <el-date-picker clearable
            v-model="form.dRecentDeliveryDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="dRecentOutboundDate">
          <el-date-picker clearable
            v-model="form.dRecentOutboundDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="cProvince">
          <el-input v-model="form.cProvince" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCity">
          <el-input v-model="form.cCity" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCounty">
          <el-input v-model="form.cCounty" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCusAddressGUID">
          <el-input v-model="form.cCusAddressGUID" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cAddCode">
          <el-input v-model="form.cAddCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cCreditAddCode">
          <el-input v-model="form.cCreditAddCode" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cRegCash">
          <el-input v-model="form.cRegCash" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="dDepBeginDate">
          <el-date-picker clearable
            v-model="form.dDepBeginDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择${comment}">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="${comment}" prop="iEmployeeNum">
          <el-input v-model="form.iEmployeeNum" placeholder="请输入${comment}" />
        </el-form-item>
        <el-form-item label="${comment}" prop="cURL">
          <el-input v-model="form.cURL" placeholder="请输入${comment}" />
        </el-form-item> -->
        <!-- <el-form-item label="${comment}" prop="PictureGUID">
          <el-input v-model="form.PictureGUID" type="textarea" placeholder="请输入内容" />
        </el-form-item> -->
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listCustomer, getCustomer, delCustomer, addCustomer, updateCustomer } from "@/api/customer/customer";
import { listDistrictclass,getDistrictclass2,getDistrictclass } from "@/api/districtclass/districtclass";
import {listForeigncurrency} from "@/api/foreigncurrency/foreigncurrency";
import {listCustomerclass} from "@/api/customerclass/customerclass";
import {listDepartment} from "@/api/department/department";
import {listPerson} from "@/api/person/person";
import {listSettlestyle} from "@/api/settlestyle/settlestyle";

export default {
  name: "Customer",
  data() {
    return {
      countryList: [],  // 国家列表
      provinceList: [],    // 省份列表
      cityList: [],       // 城市列表
      districts: [],    // 区县列表
      CusExch:[],// 币种分类列表
      CCCCList:[],//客户分类(国内/国外)列表
      CCCList:[],//客户分类列表
      departmentlist:[],//分管部门列表
      PersonList:[],//业务员列表
      JSFSList:[],//结算方式列表
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // customer表格数据
      customerList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        cCusName: null,
        cCusAbbName: null,
        cCCCode: null,
        cDCCode: null,
        cTrade: null,
        cCusAddress: null,
        cCusPostCode: null,
        cCusRegCode: null,
        cCusBank: null,
        cCusAccount: null,
        dCusDevDate: null,
        cCusLPerson: null,
        cCusEmail: null,
        cCusPerson: null,
        cCusPhone: null,
        cCusFax: null,
        cCusBP: null,
        cCusHand: null,
        cCusPPerson: null,
        iCusDisRate: null,
        cCusCreGrade: null,
        iCusCreLine: null,
        iCusCreDate: null,
        cCusPayCond: null,
        cCusOAddress: null,
        cCusOType: null,
        cCusHeadCode: null,
        cCusWhCode: null,
        cCusDepart: null,
        iARMoney: null,
        dLastDate: null,
        iLastMoney: null,
        dLRDate: null,
        iLRMoney: null,
        dEndDate: null,
        iFrequency: null,
        cCusDefine1: null,
        cCusDefine2: null,
        cCusDefine3: null,
        iCostGrade: null,
        cCreatePerson: null,
        cModifyPerson: null,
        dModifyDate: null,
        cRelVendor: null,
        iId: null,
        cPriceGroup: null,
        cOfferGrade: null,
        iOfferRate: null,
        cCusDefine4: null,
        cCusDefine5: null,
        cCusDefine6: null,
        cCusDefine7: null,
        cCusDefine8: null,
        cCusDefine9: null,
        cCusDefine10: null,
        cCusDefine11: null,
        cCusDefine12: null,
        cCusDefine13: null,
        cCusDefine14: null,
        cCusDefine15: null,
        cCusDefine16: null,
        pubufts: null,
        cInvoiceCompany: null,
        bCredit: null,
        bCreditDate: null,
        bCreditByHead: null,
        bLicenceDate: null,
        dLicenceSDate: null,
        dLicenceEDate: null,
        iLicenceADays: null,
        bBusinessDate: null,
        dBusinessSDate: null,
        dBusinessEDate: null,
        iBusinessADays: null,
        bProxy: null,
        dProxySDate: null,
        dProxyEDate: null,
        iProxyADays: null,
        cMemo: null,
        bLimitSale: null,
        cCusContactCode: null,
        cCusCountryCode: null,
        cCusEnName: null,
        cCusEnAddr1: null,
        cCusEnAddr2: null,
        cCusEnAddr3: null,
        cCusEnAddr4: null,
        cCusPortCode: null,
        cPrimaryVen: null,
        fCommisionRate: null,
        fInsueRate: null,
        bHomeBranch: null,
        cBranchAddr: null,
        cBranchPhone: null,
        cBranchPerson: null,
        cCusTradeCCode: null,
        CustomerKCode: null,
        bCusState: null,
        bShop: null,
        cCusBankCode: null,
        ccusexchName: null,
        iCusGSPType: null,
        iCusGSPAuth: null,
        cCusGSPAuthNo: null,
        cCusBusinessNo: null,
        cCusLicenceNo: null,
        bCusDomestic: null,
        bCusOverseas: null,
        cCusCreditCompany: null,
        cCusSAProtocol: null,
        cCusExProtocol: null,
        cCusOtherProtocol: null,
        fCusDiscountRate: null,
        cCusSSCode: null,
        cCusCMProtocol: null,
        dCusCreateDatetime: null,
        cCusAppDocNo: null,
        cCusMnemCode: null,
        fAdvancePaymentRatio: null,
        bServiceAttribute: null,
        bRequestSign: null,
        bOnGPinStore: null,
        cCusMngTypeCode: null,
        accountType: null,
        cCusImAgentProtocol: null,
        iSourceType: null,
        iSourceId: null,
        fExpense: null,
        fApprovedExpense: null,
        dTouchedTime: null,
        dRecentlyInvoiceTime: null,
        dRecentlyQuoteTime: null,
        dRecentlyActivityTime: null,
        dRecentlyChanceTime: null,
        dRecentlyContractTime: null,
        cLtcCustomerCode: null,
        bTransFlag: null,
        cLtcPerson: null,
        dLtcDate: null,
        cLocationSite: null,
        iCusTaxRate: null,
        alloctDeptTime: null,
        allotUserTime: null,
        recyleDeptTime: null,
        recylePubTime: null,
        cLicenceNo: null,
        cLicenceRange: null,
        cCusBusinessRange: null,
        cCusGSPAuthRange: null,
        dCusGSPEDate: null,
        dCusGSPSDate: null,
        iCusGSPADays: null,
        bIsCusAttachFile: null,
        dRecentContractDate: null,
        dRecentDeliveryDate: null,
        dRecentOutboundDate: null,
        cProvince: null,
        cCity: null,
        cCounty: null,
        cCusAddressGUID: null,
        cAddCode: null,
        cCreditAddCode: null,
        cRegCash: null,
        dDepBeginDate: null,
        iEmployeeNum: null,
        cURL: null,
        PictureGUID: null,
        country:null ,
        province: null,
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询customer列表 */
    getList() {
      this.loading = true;
      listCustomer(this.queryParams).then(response => {
        this.customerList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        country: null,
        countryName: null,
        province: null,
        provinceName: null,
        city: null,
        cityName: null,
        cCusCode: null,
        cCusName: null,
        cCusAbbName: null,
        cCCCode: null,
        cDCCode: null,
        cTrade: null,
        cCusAddress: null,
        cCusPostCode: null,
        cCusRegCode: null,
        cCusBank: null,
        cCusAccount: null,
        dCusDevDate: null,
        cCusLPerson: null,
        cCusEmail: null,
        cCusPerson: null,
        cCusPhone: null,
        cCusFax: null,
        cCusBP: null,
        cCusHand: null,
        cCusPPerson: null,
        iCusDisRate: null,
        cCusCreGrade: null,
        iCusCreLine: null,
        iCusCreDate: null,
        cCusPayCond: null,
        cCusOAddress: null,
        cCusOType: null,
        cCusHeadCode: null,
        cCusWhCode: null,
        cCusDepart: null,
        iARMoney: null,
        dLastDate: null,
        iLastMoney: null,
        dLRDate: null,
        iLRMoney: null,
        dEndDate: null,
        iFrequency: null,
        cCusDefine1: null,
        cCusDefine2: null,
        cCusDefine3: null,
        iCostGrade: null,
        cCreatePerson: null,
        cModifyPerson: null,
        dModifyDate: null,
        cRelVendor: null,
        iId: null,
        cPriceGroup: null,
        cOfferGrade: null,
        iOfferRate: null,
        cCusDefine4: null,
        cCusDefine5: null,
        cCusDefine6: null,
        cCusDefine7: null,
        cCusDefine8: null,
        cCusDefine9: null,
        cCusDefine10: null,
        cCusDefine11: null,
        cCusDefine12: null,
        cCusDefine13: null,
        cCusDefine14: null,
        cCusDefine15: null,
        cCusDefine16: null,
        pubufts: null,
        cInvoiceCompany: null,
        bCredit: null,
        bCreditDate: null,
        bCreditByHead: null,
        bLicenceDate: null,
        dLicenceSDate: null,
        dLicenceEDate: null,
        iLicenceADays: null,
        bBusinessDate: null,
        dBusinessSDate: null,
        dBusinessEDate: null,
        iBusinessADays: null,
        bProxy: null,
        dProxySDate: null,
        dProxyEDate: null,
        iProxyADays: null,
        cMemo: null,
        bLimitSale: null,
        cCusContactCode: null,
        cCusCountryCode: null,
        cCusEnName: null,
        cCusEnAddr1: null,
        cCusEnAddr2: null,
        cCusEnAddr3: null,
        cCusEnAddr4: null,
        cCusPortCode: null,
        cPrimaryVen: null,
        fCommisionRate: null,
        fInsueRate: null,
        bHomeBranch: null,
        cBranchAddr: null,
        cBranchPhone: null,
        cBranchPerson: null,
        cCusTradeCCode: null,
        CustomerKCode: null,
        bCusState: null,
        bShop: null,
        cCusBankCode: null,
        ccusexchName: null,
        iCusGSPType: null,
        iCusGSPAuth: null,
        cCusGSPAuthNo: null,
        cCusBusinessNo: null,
        cCusLicenceNo: null,
        bCusDomestic: null,
        bCusOverseas: null,
        cCusCreditCompany: null,
        cCusSAProtocol: null,
        cCusExProtocol: null,
        cCusOtherProtocol: null,
        fCusDiscountRate: null,
        cCusSSCode: null,
        cCusCMProtocol: null,
        dCusCreateDatetime: null,
        cCusAppDocNo: null,
        cCusMnemCode: null,
        fAdvancePaymentRatio: null,
        bServiceAttribute: null,
        bRequestSign: null,
        bOnGPinStore: null,
        cCusMngTypeCode: null,
        accountType: null,
        cCusImAgentProtocol: null,
        iSourceType: null,
        iSourceId: null,
        fExpense: null,
        fApprovedExpense: null,
        dTouchedTime: null,
        dRecentlyInvoiceTime: null,
        dRecentlyQuoteTime: null,
        dRecentlyActivityTime: null,
        dRecentlyChanceTime: null,
        dRecentlyContractTime: null,
        cLtcCustomerCode: null,
        bTransFlag: null,
        cLtcPerson: null,
        dLtcDate: null,
        cLocationSite: null,
        iCusTaxRate: null,
        alloctDeptTime: null,
        allotUserTime: null,
        recyleDeptTime: null,
        recylePubTime: null,
        cLicenceNo: null,
        cLicenceRange: null,
        cCusBusinessRange: null,
        cCusGSPAuthRange: null,
        dCusGSPEDate: null,
        dCusGSPSDate: null,
        iCusGSPADays: null,
        bIsCusAttachFile: null,
        dRecentContractDate: null,
        dRecentDeliveryDate: null,
        dRecentOutboundDate: null,
        cProvince: null,
        cCity: null,
        cCounty: null,
        cCusAddressGUID: null,
        cAddCode: null,
        cCreditAddCode: null,
        cRegCash: null,
        dDepBeginDate: null,
        iEmployeeNum: null,
        cURL: null,
        PictureGUID: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.cCusCode)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加客户档案";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const cCusCode = row.cCusCode || this.ids
      this.$oldvenccode = cCusCode;

      getCustomer(cCusCode).then(response => {
        this.form = response.data;
        this.form.country = response.data.cDCCode.substring(0, 2);
        this.form.province =response.data.cDCCode.substring(0, 4);
        this.form.cDCCode = response.data.cDCCode;
        getDistrictclass(response.data.cDCCode.substring(0, 2)).then(responses =>{
          this.form.country =responses.data.cDCName
        })
        getDistrictclass(response.data.cDCCode.substring(0, 4)).then(responses =>{
          this.form.province =responses.data.cDCName
        })
        getDistrictclass(response.data.cDCCode).then(responses =>{
          this.form.cDCCode =responses.data.cDCName
        })
        // getVendorclass(response.data.cVCCode).then(responses =>{
        //   this.form.cVCCode =responses.data.cVCName
        // })

        this.open = true;
        this.title = "修改客户档案";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.cCusCode != null) {
            if(this.form.id !=null){
              //先删除
              delCustomer(this.$oldvenccode);
              //再新增
              addCustomer(this.form).then(response =>{
                this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
              })
            }else{
              updateCustomer(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
            }
          } else {
            addCustomer(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const cCusCodes = row.cCusCode || this.ids;
      this.$modal.confirm('是否确认删除客户编号为"' + cCusCodes + '"的数据项？').then(function() {
        return delCustomer(cCusCodes);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('system/customer/export', {
        ...this.queryParams
      }, `customer_${new Date().getTime()}.xlsx`)
    },
   // 查询国省市
   getCountry(param, iDCGrade) {
      listDistrictclass(param).then((response) => {
        if (iDCGrade === 1) {
          this.countryList = response.rows.filter( item=>item.iDCGrade == iDCGrade);
        } else if (iDCGrade === 2) {
          this.provinceList = response.rows.filter( item=>item.iDCGrade == iDCGrade&&item.cDCCode.includes(this.form.country));
        } else if (iDCGrade === 3) {
          this.cityList = response.rows.filter( item=>item.iDCGrade == iDCGrade&&item.cDCCode.includes(this.form.province));
        }
        // this.countryList = response.rows;
      });
    },
     // 国省市变更
     changeCountry(iDCGrade) {
      var param = {};
      if (iDCGrade === 1) {
        // 国变更
        // 清空省市列表
        this.provinceList = [];
        this.cityList = [];
        // 清空已绑定省市数据
        this.form.province = null;
        this.form.provinceName = null;
        this.form.city = null;
        this.form.cityName = null;
        // 国赋值
        // this.form.cDCCode = this.form.countryName;
        // param = { pid: this.form.cDCCode };
        // 获取当前国下的省级行政区列表
        this.getCountry(param, iDCGrade);
      } else if (iDCGrade === 2) {
        // 省变更
        if (this.form.country == null || this.form.country == undefined) {
          this.$modal.msgWarning("请先选择国内/外");
          return ;
        }
        // 清空市列表
        this.cityList = [];
        // 清空市绑定数据
        this.form.city = null;
        this.form.cityName = null;
        // 省赋值
        this.form.province = this.form.provinceName;
        param = { pid: this.form.province };
        // 获取当前省下的市级行政区列表
        this.getCountry(param, iDCGrade);
      } else if (iDCGrade === 3) {
        // 市变更
        if (this.form.province == null || this.form.province == undefined) {
          return this.$modal.msgWarning("请先选择行政区");
        }
        this.form.city = this.form.cityName;

        this.getCountry(param, iDCGrade);
      }
    },

    //查询客户所属分类
    getCusClass(param,iCCGrade){
      listCustomerclass(param).then((response)=>{
        if (iCCGrade === 1) {
        this.CCCCList = response.rows.filter( item=>item.iCCGrade == iCCGrade);
        }else if(iCCGrade === 2){
          this.CCCList = response.rows.filter( item=>item.iCCGrade == iCCGrade&&item.cCCCode.startsWith(this.form.cCCCCode));
          console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>"+this.CCCList);         
        }
      })
      },
      //客户所属分类
    changeCCC(iCCGrade){
      var param = {};
      if (iCCGrade === 1) {
        //所属分类1 国变更
        //清空所属分类2列表
        this.CCCList = [];
        this.form.cCCCode = null;


        //赋值 
        this.getCusClass(param,iCCGrade);
      }else if(iCCGrade ===2){
        //选择最后所属分类
        if(this.form.cCCCCode == null||this.form.cCCCCode == undefined){
          this.$modal.msgWarning("请先选择所属分类国内/国外");
          return ;
        }
        
        this.getCusClass(param, iCCGrade);
      }
    },


    //币种分类
    changeCEH(){
      var param = {};
      listForeigncurrency(param).then(response=>{
        this.CusExch = response.rows;
    })
    }, 


    //分管部门
    changeBM(){
      var param = {};
      listDepartment(param).then(response=>{
        this.departmentlist = response.rows;
    })
    },

    //业务员列表
    changePersonList(){
        var param = {};
        listPerson(param).then(response=>{
          this.PersonList = response.rows;
        })
    },

    //结算方式列表
    changejsfs(){
        var param = {};
        listSettlestyle(param).then(response=>{
          this.JSFSList = response.rows;
        })
    },

    },


    
};
</script>
